<%--
 * edit.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags"%>


<form:form action="${requestURI}" modelAttribute="bidForm">
	
<form:hidden path="bidId" />
<form:hidden path="auction" />

	
		<acme:textbox code="bid.creationMoment" path="date" readonly="true"/>
		<acme:textbox code="bid.amount" path="amount.amount" />
		<acme:textbox code="bid.currency" path="amount.currency" />
		
		<jstl:if test="${isNew }">
		<acme:submit code="bid.create" name="save" />
		</jstl:if>
		<jstl:if test="${!isNew }">
		<acme:submit code="bid.save" name="save" />
		
		<input type="submit" name="delete"
					value="<spring:message code="bid.delete" />"
					onclick="return confirm('<spring:message code = "bid.confirm.delete"/>')" />
		</jstl:if>
		
		
		<acme:cancel code="bid.cancel" url="auction/customer/activeAuctionsListByOther.do" />
		
</form:form>